using UnityEngine;

public class CameraFollow : MonoBehaviour
{
    public Transform player;
    
    void FixedUpdate(){
        if(player){
            Vector2 ppos = player.position;
            Vector3 cpos = transform.position;
            cpos = WaterCylinder.Lerp(cpos, ppos, 0.1f);
            cpos.z = transform.position.z;
            transform.position = cpos;
        }
    }
}
